import React from 'react'
import ReactDOM from 'react-dom/client'
import { RouterProvider } from 'react-router-dom'
import router from './router'

import '@renderer/assets/tailwind.css'
import '@renderer/assets/global.scss'

// import './layout.css'

ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
  // 严格模式下，react会先执行一次，所以调试时看到每次打印两次结果不要惊讶！！！生产环境不会这样
  <React.StrictMode>
    <RouterProvider router={router}></RouterProvider>
  </React.StrictMode>
)
